package com.homedo.odin.solution.contract.wap;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.homedo.odin.solution.model.base.BaseResponse;
import com.homedo.odin.solution.model.dto.PdfImagesResponseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import lombok.Data;

@ApiModel(description = "方案详情信息")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class SolutionAppDetailResp extends BaseResponse {

    @ApiModelProperty("方案编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long solutionId;

    @ApiModelProperty("方案名称")
    private String solutionName;

    @ApiModelProperty("方案简介")
    private String description;

    @ApiModelProperty("案例配图")
    private String casePic;

    @ApiModelProperty("文件存储位置")
    private String attachment;

    @ApiModelProperty("创建日期")
    private Date createTime;

    @ApiModelProperty("创建日期_string")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTimeStr;

    @ApiModelProperty("浏览量")
    private Integer pageView;

    @ApiModelProperty("方案上传者id")
    private Integer userId;

    @ApiModelProperty("公司名称")
    private String firmName;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("品牌图标")
    private String brandIcon;

    @ApiModelProperty("方案关键字(多个以逗号分隔)")
    private String solutionKeyword;
    @ApiModelProperty("是否是专家方案:否：false 是：true ,")
    private Boolean isExpert;
    @ApiModelProperty("是否收费 0：不收费 1：收费")
    private Integer isFree;
    @ApiModelProperty("pdf转图片集合")
    private List<PdfImagesResponseBean> imageList;

}
